﻿.ai-chat-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f9f9f9;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
}

    .ai-chat-container h1 {
        color: #2c3e50;
        text-align: center;
        margin-bottom: 20px;
    }

.chat-box {
    height: 500px;
    overflow-y: auto;
    padding: 15px;
    background-color: white;
    border-radius: 8px;
    margin-bottom: 20px;
    border: 1px solid #e0e0e0;
}

.message {
    margin-bottom: 15px;
    display: flex;
}

.message-content {
    max-width: 70%;
    padding: 10px 15px;
    border-radius: 18px;
    line-height: 1.4;
    position: relative;
}

.user-message {
    justify-content: flex-end;
}

    .user-message .message-content {
        background-color: #007bff;
        color: white;
        border-bottom-right-radius: 5px;
    }

.ai-message {
    justify-content: flex-start;
}

    .ai-message .message-content {
        background-color: #f1f1f1;
        color: #333;
        border-bottom-left-radius: 5px;
    }

.input-area {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.message-input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    resize: none;
    font-size: 16px;
}

    .message-input:focus {
        outline: none;
        border-color: #007bff;
        box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
    }

.send-button, .clear-button {
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s;
}

.send-button {
    background-color: #007bff;
    color: white;
}

    .send-button:hover {
        background-color: #0056b3;
    }

.clear-button {
    background-color: #6c757d;
    color: white;
}

    .clear-button:hover {
        background-color: #5a6268;
    }

.status-area {
    margin-top: 10px;
    text-align: center;
    min-height: 20px;
}

.status-message {
    color: #6c757d;
    font-size: 14px;
}

.loading-spinner {
    border: 3px solid #f3f3f3;
    border-top: 3px solid #007bff;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    animation: spin 1s linear infinite;
    display: inline-block;
    vertical-align: middle;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .ai-chat-container {
        padding: 10px;
    }

    .chat-box {
        height: 400px;
    }

    .message-content {
        max-width: 85%;
    }
}
